/* 
 * File:   TUSocket.h
 * Author: arschmitz
 *
 * Created on April 3, 2011, 12:12 PM
 * Modified on April 8, 2011, 5:01 PM by Michael Sautter
 */

#ifndef TUSOCKET_H
#define TUSOCKET_H

#include <cstdlib>
#include "TigerUpdate.h"

class TUSocket {
public:
    TUSocket();
    TUSocket(TUAddress *address);
    ~TUSocket();
    TUAddress *getAddress();
    int setAddress(TUAddress *address);
    int bindMe();
    int sendMe(TUObject *data);
    int recvMe(TUObject *recv, TUAddress *returnAddress = NULL);
private:
    TUAddress myTUAddress;
    int mySock;

};

#endif    /* TUSOCKET_H */
